package com.wwwarehouse.taskcenter.bean;

import android.os.Parcel;
import android.os.Parcelable;


/**
 *
 * @author clannad.shao
 * @date 2017/11/21
 * Description:
 */
public class UnitBean implements Parcelable{

    private long unitUkid;

    private String unitName;

    public UnitBean() {
    }

    public UnitBean(long unitUkid, String unitName) {
        this.unitUkid = unitUkid;
        this.unitName = unitName;
    }

    protected UnitBean(Parcel in) {
        unitUkid = in.readLong();
        unitName = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(unitUkid);
        dest.writeString(unitName);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UnitBean> CREATOR = new Creator<UnitBean>() {
        @Override
        public UnitBean createFromParcel(Parcel in) {
            return new UnitBean(in);
        }

        @Override
        public UnitBean[] newArray(int size) {
            return new UnitBean[size];
        }
    };

    public long getUnitUkid() {
        return unitUkid;
    }

    public void setUnitUkid(long unitUkid) {
        this.unitUkid = unitUkid;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }
}
